// class VideoSetModel {
//   List<M3u8List> m3u8List;
//   List<ZuidallList> zuidallList;

//   VideoSetModel({this.m3u8List, this.zuidallList});

//   VideoSetModel.fromJson(Map<String, dynamic> json) {
//     if (json['m3u8List'] != null) {
//       m3u8List = new List<M3u8List>();
//       json['m3u8List'].forEach((v) {
//         m3u8List.add(new M3u8List.fromJson(v));
//       });
//     }
//     if (json['zuidallList'] != null) {
//       zuidallList = new List<ZuidallList>();
//       json['zuidallList'].forEach((v) {
//         zuidallList.add(new ZuidallList.fromJson(v));
//       });
//     }
//   }

//   Map<String, dynamic> toJson() {
//     final Map<String, dynamic> data = new Map<String, dynamic>();
//     if (this.m3u8List != null) {
//       data['m3u8List'] = this.m3u8List.map((v) => v.toJson()).toList();
//     }
//     if (this.zuidallList != null) {
//       data['zuidallList'] = this.zuidallList.map((v) => v.toJson()).toList();
//     }
//     return data;
//   }
// }

// class M3u8List {
//   String videoSetName;
//   String videoSetUrl;

//   M3u8List({this.videoSetName, this.videoSetUrl});

//   M3u8List.fromJson(Map<String, dynamic> json) {
//     videoSetName = json['video_set_name'];
//     videoSetUrl = json['video_set_url'];
//   }

//   Map<String, dynamic> toJson() {
//     final Map<String, dynamic> data = new Map<String, dynamic>();
//     data['video_set_name'] = this.videoSetName;
//     data['video_set_url'] = this.videoSetUrl;
//     return data;
//   }
// }

// class ZuidallList {
//   String videoSetName;
//   String videoSetUrl;

//   ZuidallList({this.videoSetName, this.videoSetUrl});

//   ZuidallList.fromJson(Map<String, dynamic> json) {
//     videoSetName = json['video_set_name'];
//     videoSetUrl = json['video_set_url'];
//   }

//   Map<String, dynamic> toJson() {
//     final Map<String, dynamic> data = new Map<String, dynamic>();
//     data['video_set_name'] = this.videoSetName;
//     data['video_set_url'] = this.videoSetUrl;
//     return data;
//   }
// }


class VideoSetModel {
  List<TotalList> totalList;

  VideoSetModel({this.totalList});

  VideoSetModel.fromJson(Map<String, dynamic> json) {
    if (json['totalList'] != null) {
      totalList = new List<TotalList>();
      json['totalList'].forEach((v) {
        totalList.add(new TotalList.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.totalList != null) {
      data['totalList'] = this.totalList.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class TotalList {
  String playType;
  List<VideoList> videoList;

  TotalList({this.playType, this.videoList});

  TotalList.fromJson(Map<String, dynamic> json) {
    playType = json['playType'];
    if (json['videoList'] != null) {
      videoList = new List<VideoList>();
      json['videoList'].forEach((v) {
        videoList.add(new VideoList.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['playType'] = this.playType;
    if (this.videoList != null) {
      data['videoList'] = this.videoList.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class VideoList {
  String videoSetName;
  String videoSetUrl;

  VideoList({this.videoSetName, this.videoSetUrl});

  VideoList.fromJson(Map<String, dynamic> json) {
    videoSetName = json['video_set_name'];
    videoSetUrl = json['video_set_url'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['video_set_name'] = this.videoSetName;
    data['video_set_url'] = this.videoSetUrl;
    return data;
  }
}
